import { axios } from '@/utils/request'

/**
 * 查询订单表
 *
 * @author can
 * @date 2022-03-19 14:11:47
 */
export function bizOrderPage (parameter) {
  return axios({
    url: '/bizOrder/page',
    method: 'get',
    params: parameter
  })
}
/**
 * 查询订单表
 *
 * @author can
 * @date 2022-03-19 14:11:47
 */
 export function bizOrderPageUser (parameter) {
  return axios({
    url: '/bizOrder/page-user',
    method: 'get',
    params: parameter
  })
}
/**
 * 订单表列表
 *
 * @author can
 * @date 2022-03-19 14:11:47
 */
export function bizOrderList (parameter) {
  return axios({
    url: '/bizOrder/list',
    method: 'get',
    params: parameter
  })
}

/**
 * 添加订单表
 *
 * @author can
 * @date 2022-03-19 14:11:47
 */
export function bizOrderAdd (parameter) {
  return axios({
    url: '/bizOrder/add',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑订单表
 *
 * @author can
 * @date 2022-03-19 14:11:47
 */
export function bizOrderEdit (parameter) {
  return axios({
    url: '/bizOrder/edit',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除订单表
 *
 * @author can
 * @date 2022-03-19 14:11:47
 */
export function bizOrderDelete (parameter) {
  return axios({
    url: '/bizOrder/delete',
    method: 'post',
    data: parameter
  })
}

/**
 * 导出订单表
 *
 * @author can
 * @date 2022-03-19 14:11:47
 */
export function bizOrderExport (parameter) {
  return axios({
    url: '/bizOrder/export',
    method: 'get',
    params: parameter,
    responseType: 'blob'
  })
}

/**
 * 派送接口
 * @author can
 * @date 2022-03-19 14:12:32
 */
 export function toSend (parameter) {
  return axios({
    url: '/bizStock/send',
    method: 'post',
    data: parameter
  })
}

/**
 * 完成接口
 * @author can
 * @date 2022-03-19 14:12:32
 */
 export function toCompleted (parameter) {
  return axios({
    url: '/bizStock/complete',
    method: 'post',
    data: parameter
  })
}

/**
 * 派送人下拉列表
 * @author can
 * @date 2022-03-19 14:12:32
 */
 export function sendUserDown () {
  return axios({
    url: '/bizStock/send-user-down',
    method: 'get'
  })
}
